package cn.huoyingkeji.system.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import cn.huoyingkeji.mybitisplus.domain.TenantEntity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("t_sys_org_role_relation")
public class SysOrgRoleRelation extends TenantEntity {
    private static final long serialVersionUID = 1L;

    /** 组织id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;
    /** 用户id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /** 扩展信息 */
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private String extJson;
}
